﻿using Microsoft.EntityFrameworkCore;
using XsqTech.SmartOA.Domain.Table;

namespace XsqTech.SmartOA.EFCore
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }

        #region Table
        /// <summary>
        /// 用户实体
        /// </summary>
        public virtual DbSet<User> User { get; set; }
        /// <summary>
        /// 角色实体
        /// </summary>
        public virtual DbSet<Roles> Roles { get; set; }
        /// <summary>
        /// 角色权限
        /// </summary>
        public virtual DbSet<RolePermission> RolePermission { get; set; }
        /// <summary>
        /// 用户角色
        /// </summary>
        public virtual DbSet<UserRole> UserRole { get; set; }
        /// <summary>
        /// 权限实体
        /// </summary>
        public virtual DbSet<Permission> Permission { get; set; }
        /// <summary>
        /// 部门实体类
        /// </summary>
        public virtual DbSet<Department> Department { get; set; }
        /// <summary>
        /// 部门用户关系实体类
        /// </summary>
        public virtual DbSet<DepartmentUser> DepartmentUser { get; set; }
        /// <summary>
        /// 设计表单
        /// </summary>
        public virtual DbSet<Form> Form { get; set; }
        /// <summary>
        /// 菜单表
        /// </summary>
        public virtual DbSet<Menu> Menu { get; set; }
        /// <summary>
        /// 字典表主表
        /// </summary>
        public DbSet<Dict> Dict { get; set; }
        /// <summary>
        /// 字典表从表
        /// </summary>
        public DbSet<DictDetails> DictDetails { get; set; }
        /// <summary>
        /// 定时任务管理实体类
        /// </summary>
        public DbSet<Timing> Timing { get; set; }
        /// <summary>
        /// 定时器日志
        /// </summary>
        public DbSet<TimingLog> TimingLog { get; set; }
        #endregion
    }
}